package TemplateCode;

public class HandlerMark extends Handler{
    @Override
    public String handleRequest(String textMessage) {

        System.out.println("处理符号");
        String result;
        result = textMessage.replace(",","");

        result = result.replace(".","");

        if(nextHandler!=null){
            result = nextHandler.handleRequest(result);
        }

        return result;
    }
}
